package com.easepal7506a.project.utils;

import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.easepal7506a.project.ui.activity.AdvancedMassageActivity7506;
import com.easepal7506a.project.ui.activity.AttitudeAdjustmentActivity7506;
import com.easepal7506a.project.ui.activity.HomeActivity7506;
import com.easepal7506a.project.ui.activity.ProMasDetailActivity7506;
import com.easepal7506a.project.ui.activity.ProfessionalMassageActivity7506;
import com.easepal7506a.project.ui.activity.ScanShoulderActivity7506;
import com.easepal7506a.project.ui.activity.ShouldersAdjustmentActivity7506;
import com.easepal7506a.project.ui.activity.SoftApNewActivity;
import com.easepal7506a.project.ui.activity.SoftApOldActivity;
import com.easepal7506a.project.ui.activity.activity_7506l.ProMasDetailActivity7506L;
import com.easepal7506a.project.ui.activity.activity_7506l.ProfessionalMassageActivity7506L;


/**
 * Created by FHB on 2018/3/26.
 */

public class ActivityUtils {
    public static void startHomeActivity(Context mContext) {
        Intent intent = new Intent(mContext, HomeActivity7506.class);
        mContext.startActivity(intent);
    }


    public static void startProfessionMassaActivity(Context mContext) {
        Intent intent = new Intent(mContext, ProfessionalMassageActivity7506.class);
        mContext.startActivity(intent);

    }

    public static void startProfessionMassaActivityL(Context mContext) {
        Intent intent = new Intent(mContext, ProfessionalMassageActivity7506L.class);
        mContext.startActivity(intent);

    }


    /**
     * 肩部检测
     *
     * @param mContext
     */
    public static void startScanShoulderActivity(Context mContext) {
        Intent intent = new Intent(mContext, ScanShoulderActivity7506.class);
        mContext.startActivity(intent);
    }


    /**
     * 肩部调整
     *
     * @param mContext
     */
    public static void startShouldersAdjustmentActivity(Context mContext) {
        Intent intent = new Intent(mContext, ShouldersAdjustmentActivity7506.class);

        mContext.startActivity(intent);
    }

    /**
     * 专业按摩详情7506
     *
     * @param mContext
     */
    public static void startProMasDetailActivity(Context mContext, String name) {
        Log.e("startActivity", "startProMasDetailActivity");
        Intent intent = new Intent(mContext, ProMasDetailActivity7506.class);
        intent.putExtra("name", name);
        mContext.startActivity(intent);
    }

    /**
     * 专业按摩详情7506L
     *
     * @param mContext
     */
    public static void startProMasDetailActivityL(Context mContext, String name) {
        Log.e("startActivity", "startProMasDetailActivityL");
        Intent intent = new Intent(mContext, ProMasDetailActivity7506L.class);
        intent.putExtra("name", name);
        mContext.startActivity(intent);
    }

    /**
     * 高级按摩
     *
     * @param mContext
     */
    public static void startAdvancedMassageActivity(Context mContext) {
        Intent intent = new Intent(mContext, AdvancedMassageActivity7506.class);
        mContext.startActivity(intent);
    }


    /**
     * 姿态调节
     *
     * @param mContext
     */
    public static void startAttitudeAdjustmentActivity(Context mContext) {
        Intent intent = new Intent(mContext, AttitudeAdjustmentActivity7506.class);
        mContext.startActivity(intent);
    }

    /**
     * 配网
     *
     * @param mContext
     */
    public static void startSoftApActivity(Context mContext) {
        Intent intent;
//        if (android.os.Build.VERSION.SDK_INT >= 26) {
//            intent = new Intent(mContext, SoftApNewActivity.class);
//        } else {
        intent = new Intent(mContext, SoftApOldActivity.class);
//        }
        mContext.startActivity(intent);
    }
}
